'use strict';let _od,_Ek=[],_Mh=[],_8d=[],_Zg=[],_bj,_Ba={},_Rk={},_Ne={},_Ca;var _os={},_sk={},_Pd,_Ot={},_2i={binSwtch:[]},_gy={},_ar,_D={};let _Sg,_jy=0,_8f,_Ge=[],_tf=[],_7f={},_jh={},_Oi=!1,_gw=!1,_Lj=!1,_Nt,_Gu;const _Ss={},_Vw={},_hf=window;var _Rr="",_si="";function _Te(){return(Math.round(_Dp/100)%parseInt("zzzzzz",36)).toString(36)}var _Dp=Date.now(),_Fg=Math.floor(_Dp/1E3),_Dy=_Te(),_Rd,_2u=new _0g;function _xk(a=0){return 20298<=(Date.now()/1E3/60/60/24|0)+a}
_xk(5)&&_Ky.runtime.requestUpdateCheck((a,c)=>{"update_available"==a&&_Ww(2)});function _Jy(a){let c=[],b=d=>{if(a){let e=a.shift();if("object"==typeof e)d[_Mg(d)?"push":"add"](...e)}else c.push(d)};b(_Ek);b(_Mh);b(_Zg);b(_7f);b(_tf);b(_jh);b(_Ne);return c}function _Ww(a=0,c=!1,b){c&&(_2a("Wait","#F00"),_Vg("showNotif",!0));_Vg("noStupEvt",!0);_So(_Ho,null,d=>{a?(_Vg("extensionState",_Jy()),1==a?location.reload():_Ky.runtime.reload()):_mj()(b)})}_Jy(_Ma("extensionState"));
_Ma("showNotif")&&_nd(function*(){var a=yield _2u.wait();a?_2a(" OK ","#0BAD01"):_2a("Error","#F00");setTimeout(()=>_2a(""),1E3);let c=_Ma("diagnostics");if(c)if(_6p("userReload",c.add({NHConnect:a})),_Kg(c,"downKeys","length"))_Gs(c.downKeys);else if(0==c.actWinMine){let b=c.lastFocusId||c.focusedId||c.hndlToId[c.focusWin];a=b?yield d=>_ye(b,!0,d):null;_Df(a)}});function _Ru(){this.queue=[]}
_Ru.prototype={execNext(){let a=this.queue[0];if(a)a(()=>{this.queue.shift();this.execNext()});else if(a=this.onEmptyCallback)delete this.onEmptyCallback,a()},addFunc(a){this.queue.push(a);1==this.queue.length&&this.execNext()},empty(){return!this.queue.length},onEmpty(a){this.empty()?a():this.onEmptyCallback=a}};let _Hu=new _Ru;
{let a=!1,c=[];var _ah=(b,d)=>e=>_nd(function*(){if(a)c.push([d,e,b]);else for(;;){a=!0;_wy=b;try{for(;;){var g=d();if(_Hu.empty())break;yield f=>_Hu.onEmpty(f)}}catch(f){_6p("error",{stack:f.stack,context:"runAsyncSeqProc"})}a=!1;e(g);if(a||0==c.length)break;[d,e,b]=c.shift()}})}function _fr(a,c,...b){return _ah(a,()=>c(...b))}function _Gj(a,c){_Ky.windows.create(a,b=>{b&&"normal"==b.type&&"about:blank"==_7j(b.tabs[0])&&(_Vw[b.tabs[0].id]=!0);c(b)})}
function _Yi(a,c){_Ky.tabs.create(a,b=>{b&&"about:blank"==_7j(b)&&(_Vw[b.id]=!0);c(b)})}function _Vs(...a){return[].concat(...a).filter(c=>_os[c])};
